home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #1 / Amiga Plus CD - 1997 - No. 01.iso / pd / programmierung / mesa-1.2.8 / samples / makefile < prev    next >
Encoding:
Makefile  |  1996-05-27  |  1.1 KB  |  66 lines

  1. # Makefile for sample programs
  2.  
  3. # $Id: Makefile,v 1.5 1995/08/01 20:59:49 brianp Exp $
  4.  
  5. # $Log: Makefile,v $
  6. # Revision 1.5  1995/08/01  20:59:49  brianp
  7. # use $(TK_LIB) and $(AUX_LIB), added nurb demo
  8. #
  9. # Revision 1.4  1995/05/01  15:25:51  brianp
  10. # clean up and reorganize
  11. #
  12. # Revision 1.3  1995/03/30  22:30:56  brianp
  13. # added new demos to PROGS
  14. #
  15. # Revision 1.2  1995/03/04  19:43:47  brianp
  16. # updated for Make-config
  17. #
  18. # Revision 1.1  1995/03/03  14:35:18  brianp
  19. # Initial revision
  20. #
  21.  
  22.  
  23. ##### MACROS #####
  24.  
  25. INCDIR = ../include
  26.  
  27. GL_LIBS = -L../lib -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  28.  
  29. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  30.  
  31. PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  32.     eval fog font line logo nurb oglinfo olympic \
  33.     overlay point prim quad select shape \
  34.     speed sphere star stencil stretch texture \
  35.     tri wave
  36.  
  37.  
  38.  
  39. ##### RULES #####
  40.  
  41. .SUFFIXES:
  42. .SUFFIXES: .c
  43.  
  44. .c: $(LIB_DEP)
  45.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  46.  
  47.  
  48.  
  49. ##### TARGETS #####
  50.  
  51. default:
  52.     @echo "Specify a target configuration"
  53.  
  54. clean:
  55.     -rm *.o *~
  56.  
  57. realclean:
  58.     -rm $(PROGS)
  59.     -rm *.o *~
  60.  
  61. targets: $(PROGS)
  62.  
  63. include ../Make-config
  64.  
  65.  
  66.